/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ie.tcd.cs.railtickets.server.dao;

import ie.tcd.cs.railtickets.server.domain.PathTime;
import ie.tcd.cs.railtickets.server.domain.Route;
import ie.tcd.cs.railtickets.server.domain.RouteStation;
import java.util.List;

/**
 *
 * @author Wenbo Sun
 */
public interface RouteStationDAO extends BaseDAO{

    public List<Long> findIdsByStation(String station);

    //list {Integer, Integer}
    public int[] getSequencesByTime(PathTime pathTime);

    //list {RouteStation, RouteStation}
    public List findByPathTime(PathTime pathTime);

    public RouteStation findBy(Route route, int sequence);

    //sequences {start, end}
    public List<RouteStation> findBy(Route route, int... sequences);
}
